package com.fruit.orange;

import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yanlong.zhang
 * @since 2019-09-04
 */
@RestController
@RequestMapping("/fruit")
@RefreshScope
public class OrangeController {

    @GetMapping("/buyFruit")
    public String buyFruit() {
        return "这是一个橘子";
    }

}
